package com.opennews.openplatform

import org.springframework.http.HttpMethod

class RequestMap {
	String id
    String configAttribute          // Requestmap Constant
    HttpMethod httpMethod
    String url
    Date dateCreated
    Date lastUpdated

    static constraints = {
        configAttribute nullable: false, blank: false
        httpMethod nullable: true
        url nullable: false, blank: false, unique: 'httpMethod'
    }

    static mapping = {
        cache true
    }
}